<?phpclass Request{	private $registry;	private $controller;	private $action;		function __construct($registry)	{		$this->registry = $registry;	}	/**	*	* @get the controller from the url	*	* @return void	*	*/	function getController()	{		$route = (empty($_GET['action'])) ? '' : $_GET['action'];		if (empty($route)) {			$route = 'index';		} else {			$parts = explode('/', $route);			$this->controller = strtolower($parts[0]);			if (isset($parts[1])) {				$this->action = strtolower($parts[1]);			}		}		if (empty($this->controller)) {			$this->controller = 'index';		}		if (empty($this->action)) {			$this->action = 'index';		}		$this->registry->controller = $this->controller;		$this->registry->action = $this->action;	}}?>